       
<div class="sidebar-nav">
    <form class="search form-inline">
      <?php
      $cue = session("cue");
      $pid = db("auth")->where("auth_name='$cue'")->value("auth_pid");  
      $a = cookie("think_var");
      ?>
    </form>


    {volist name="onelist" id="one" key="i"}
    <a href="#{$one['auth_id']}" class="nav-header" data-toggle="collapse"><i class="{$one['auth_icon']}"></i>{$one['auth_name']}<i class="icon-chevron-up"></i></a>
    
    <ul id="{$one['auth_id']}" class="nav nav-list collapse {if condition="$pid==$one['auth_id']"}in{/if}">
        {volist name="twolist" id="two"}
        {if condition="$two['auth_pid']==$one['auth_id']"}
        <li class="{if condition="$two['auth_name']==$cue"}active{else/}{/if}"><a href="/{$two['auth_a']}">{$two['auth_name']}</a></li>
        {/if}
        {/volist}
    </ul>
    
    {/volist}
</div>